const { env } = require('./env')
// 文件上传位置
const UPLOAD_PATH = env === 'dev' ? '../nginx-1.21.6/resource/admin-upload-ebook' : '/root/upload/admin-upload/ebook'

const UPLOAD_URL = env === 'dev' ? 'http://127.0.0.1:8082/admin-upload-ebook' : 'http://39.108.57.93:8889'

const OLD_UPLOAD_URL = env === 'dev' ? 'http://127.0.0.1:8082/admin-upload-ebook' : 'http://39.108.57.93:8889'

module.exports = {
	CODE_ERROR: -1,
	CODE_SUCCESS: 0,
	CODE_TOKEN_EXPIRED: -2,
	debug: true,
	PWD_SALT: 'admin_imooc_node',
	PRIVATE_KEY: "liu_AiL_reading",
	JWT_EXPIRED: 60 * 60,
	UPLOAD_PATH,
	UPLOAD_URL,
	OLD_UPLOAD_URL,
	MIME_TYPE_EPUB: 'application/epub+zip'
}